/*标准主题*/
:root {
    --color-text: #33333;
    --color-background: #fffff;

    /*主色调*/
    --q-primary: #2F80ED;
    /*二级背景色-输入框、卡片*/
    --q-secondary: #EEF0F0;
    /*强调色*/
    --q-accent: #FF3226;
    /*选中*/
    --q-positive: #EEF0F0;
    /*未选中*/
    --q-negative: #FFFFFF;
    /*明细颜色*/
    --q-info: #A3B4CF;
    /*告警色*/
    --q-warning: #FFD565;
}

/*暗色主题*/
[theme='dark'] {
    --color-text: #ffffff;
    --color-background: #20232C;

    /*主色调*/
    --q-primary: #2F80ED;
    /*二级背景色-输入框、卡片*/
    --q-secondary: #EEF0F0;
    /*强调色*/
    --q-accent: #FF3226;
    /*选中*/
    --q-positive: #221F32;
    /*未选中*/
    --q-negative: #363446;
    /*明细颜色*/
    --q-info: #A3B4CF;
    /*告警色*/
    --q-warning: #FFD565;


}

/*document.documentElement.setAttribute("theme", this.theme);*/

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    position: relative;
    font-weight: normal;
}

body {
    min-height: 100vh;
    color: var(--color-text);
    background: var(--color-background);
    transition: color 0.5s, background-color 0.5s;
    line-height: 1.6;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 18px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
